package com.competition.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.competition.entity.AgriculturalTrainingDetail;
import com.competition.mapper.AgriculturalTrainingDetailMapper;
import com.competition.service.AgriculturalTrainingDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class AgriculturalTrainingDetailServiceImpl extends ServiceImpl<AgriculturalTrainingDetailMapper, AgriculturalTrainingDetail> implements AgriculturalTrainingDetailService {
    @Autowired
    private AgriculturalTrainingDetailMapper agriculturalTrainingDetailMapper;

    @Override
    public List<AgriculturalTrainingDetail> queryAgriculturalTrainingDetailList(HashMap<String, Object> hashMap) {
        return agriculturalTrainingDetailMapper.queryAgriculturalTrainingDetailList(hashMap);
    }

    @Override
    public AgriculturalTrainingDetail queryAgriculturalTrainingDetailById(String id) {
        return agriculturalTrainingDetailMapper.queryAgriculturalTrainingDetailById(id);
    }
}
